import request from '@/utils/request'

// 查询集装箱备案列表
export function listContaRecord(query) {
  return request({
    url: '/billsdecl/contaRecord/list',
    method: 'get',
    params: query
  })
}

// 查询集装箱备案详细
export function getContaRecord(id) {
  return request({
    url: '/billsdecl/contaRecord/getInfo/' + id,
    method: 'get'
  })
}

// 新增集装箱备案
export function addContaRecord(data) {
  return request({
    url: '/billsdecl/contaRecord/add',
    method: 'post',
    data: data
  })
}

// 修改集装箱备案
export function updateContaRecord(data) {
  return request({
    url: '/billsdecl/contaRecord/edit',
    method: 'post',
    data: data
  })
}

// 删除集装箱备案
export function delContaRecord(id) {
  return request({
    url: '/billsdecl/contaRecord/remove/' + id,
    method: 'get'
  })
}

// 导出集装箱备案
export function exportContaRecord(query) {
  return request({
    url: '/billsdecl/contaRecord/export',
    method: 'get',
    params: query
  })
}
